var promise = new Promise((resolve, reject) => {
    resolve({
        a: 0
    })
})

for (var i = 0; i< 10; i++) {
    promise = new Promise((resolve, reject) => {
        promise.then(result => {
            result.a++
            console.log(result)
            resolve(result)
        })
    })
}